package com.cw1.adapter.classadapter;

/**
 * @Author qiuMi
 * @description 电压 - 适配器类
 * @Date 2022-11-06 17:44
 **/
public class VoltageAdapter extends Voltage220V implements IVoltage5V{
    /**
     * 电压 - 适配器转换
     * @return int
     */
    @Override
    public int outPut5V() {
        // 通过继承来直接拿去到 220V电压
        int srcV = outPut220V();
        // 电压转换
        int dstV = srcV / 44;
        return dstV;
    }
}
